package com.shujia.wyh.day12.homework.mon;

/*

    属性包括：怪物名字，生命值，攻击力
    方法包括：攻击，移动
 */
public class Monster {
    private String name;
    private int blood;
    private int aggressivity;

    public Monster() {
    }

    public Monster(String name, int blood, int aggressivity) {
        this.name = name;
        this.blood = blood;
        this.aggressivity = aggressivity;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

    public int getAggressivity() {
        return aggressivity;
    }

    public void setAggressivity(int aggressivity) {
        this.aggressivity = aggressivity;
    }

    public void attack() {
        System.out.println("怪物" + name + "展开攻击");
    }

    public void move() {
        System.out.println("移动");
    }

}
